[{"id":2023,"date":"2023-03-24T17:09:17","date_gmt":"2023-03-24T09:09:17","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=2023"},"modified":"2023-03-24T18:13:36","modified_gmt":"2023-03-24T10:13:36","slug":"ios-swift5-%e8%87%aa%e5%b7%b1%e8%ae%be%e8%ae%a1%e7%9a%84%e4%b8%80%e4%b8%aa%e7%b1%bb%e4%bc%bc%e5%ae%89%e5%8d%93android%e7%9a%84toast%e7%9a%84%e4%bf%a1%e6%81%af%e6%98%be%e7%a4%ba%e6%8f%90%e7%a4%ba","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/2023","title":{"rendered":"IOS-swift5-\u81ea\u5df1\u8bbe\u8ba1\u7684\u4e00\u4e2a\u7c7b\u4f3c\u5b89\u5353Android\u7684TOAST\u7684\u4fe1\u606f\u663e\u793a\u63d0\u793a\u529f\u80fd"},"content":{"rendered":"\n

\u81ea\u5df1\u8bbe\u8ba1\u7684\u82f9\u679cios\u7684\u4e00\u4e2a\u7c7b\u4f3c\u5b89\u5353\u7684TOAST\u7684\u4fe1\u606f\u663e\u793a\u63d0\u793a\u529f\u80fd\uff0c\u57fa\u4e8eswift5\u5f00\u53d1\u3002\u53ef\u4ee5\u6307\u5b9a \u663e\u793a\u65f6\u957f\u3002\u5355\u4f4d \u79d2\uff0c\u53ef\u4ee5\u662f\u5c0f\u6570\uff0c\u6bd4\u59822.5\u79d2\u3002<\/p>\n\n\n\n

\/\/\n\/\/  Tools.swift\n\/\/  Mark\n\/\/\n\/\/  Created by nelson on 2022\/12\/14.\n\/\/\n\nimport Foundation\nimport UIKit\n\/\/ \u81ea\u5df1\u6574\u7684\u4e00\u4e2a\u5de5\u5177\u7c7b\nclass Tools {\n    static func toast(msg:String,seconds:Double,vc:UIViewController){\n        \n        \/\/\u5f97\u5230\u5f53\u524d UIViewController \u7684 \u5b89\u5168\u663e\u793a\u533a\u57df\n        \n        let insets:UIEdgeInsets = vc.view.safeAreaInsets\n        \/\/\u5f00\u59cb\u6d4b\u91cf\u5f53\u524d\u5185\u5bb9\u8981\u663e\u793a\u7684 \u5927\u5c0f\uff0c\u5bbd\u5ea6 \u4e0d\u8d85\u8fc7 \u6700\u5927\u5bbd\u5ea6\n        \n        \n        \/\/\u4e0d\u8981\u7d27\u8d34\u7740\u5e95\u90e8\uff0c\u7559\u4e00\u4e2amarging->to->bottom\n        let marginBottom:CGFloat = 50\n        \n        let width = UIScreen.getScreenWidth() - insets.left - insets.right\n        let height = UIScreen.getScreenHeight() - insets.top - insets.bottom - marginBottom\n        \n        let font:UIFont = UIFont.preferredFont(forTextStyle: .body)\n        \n        let dict = [NSAttributedString.Key.font : font]\n        let msgRectTemp = (msg as NSString).boundingRect(with: CGSize(width: width , height: height), options: [.usesFontLeading,.usesLineFragmentOrigin], attributes: dict as [NSAttributedString.Key : Any], context: nil)\n        \n        \/\/\u56e0\u4e3a\u6709insets\uff0c\u6240\u4ee5\u9700\u8981\u4eba\u4e3a\u6269\u5927 rect\n        let msgRect = CGRect(x: 0, y: 0, width: Int(ceil(msgRectTemp.width)) + Int(MyLabelToast.insetHor * 2), height: Int(ceil(msgRectTemp.height)) + Int(MyLabelToast.insetVer * 2))\n        \n        \n        let y = Int(UIScreen.getScreenHeight() - insets.bottom - msgRect.height - marginBottom)\n        \n        let x = insets.left + (CGFloat(width) - msgRect.width ) \/ 2\n        \n        var label:UILabel?\n        \n        let frame = CGRect(x: Int(x), y: y, width: Int(ceil(msgRect.width))  , height: Int(msgRect.height))\n\n        label = vc.view.window?.windowScene?.windows.last?.viewWithTag(999) as? UILabel\n        if(label == nil){\n            \/\/\u65b0\u5efa\u7acb\n            label = MyLabelToast(frame: frame)\n            \n            label!.layer.masksToBounds = true \/\/ \u4e0d\u52a0\u8fd9\u53e5 \u5706\u89d2\u4f1a\u65e0\u6548\n            label!.layer.cornerRadius = 5\n            \n            label!.backgroundColor = UIColor.black.withAlphaComponent(0.5)\n            label!.textColor = UIColor.white\n            label!.font = font\n            \n            \/\/\n            label!.tag = 999\n        }\n        else{\n            \/\/\u4e0d\u7528\u65b0\u5efa\u7acb\n            \/\/label!.frame = frame\n        }\n        \n        \/\/\n        label!.text = msg\n        vc.view.window?.windowScene?.windows.last?.addSubview(label!)\n        \n        \/\/\u4e0b\u8fb9\u7684\u65b9\u6cd5\u4e0d\u53ef\u4ee5\uff01\u5728pad\u4e0a \uff0c\u4e0d\u662f\u5168\u5c4f\u7684vc\u65f6\uff0c\u4f1a\u663e\u793a\u4e0d\u6b63\u5e38\n        \/\/vc.view.addSubview(label!)\n        \n        \/\/\u5b9a\u65f6\u5668\n        let timer = Timer.scheduledTimer(withTimeInterval: seconds, repeats: false) { Timer in\n            if(label != nil){\n                label!.removeFromSuperview()\n            }            \n        }\n        \n        return\n    }\n}\n<\/pre>\n\n\n\n
extension UIScreen{\n    static func getScreenWidth()->CGFloat{\n        return UIScreen.main.bounds.size.width\n    }\n    static func getScreenHeight()->CGFloat{\n        return UIScreen.main.bounds.size.height\n    }    \n    static func getScreenSize()->CGSize{\n        return UIScreen.main.bounds.size\n    }\n}<\/pre>\n\n\n\n

\u7528\u6765\u5448\u73b0\u6587\u5b57\u7684label<\/p>\n\n\n\n

\/\/\n\/\/  MyLabelToast.swift\n\/\/  Mark\n\/\/\n\/\/  Created by nelson on 2023\/3\/21.\n\/\/\n\/*\n \u4e3b\u8981\u5c31\u662f\u4e3a\u4e86\u589e\u52a0 toast \u4e2d label\u7684 padding\n *\/\nimport UIKit\n\nclass MyLabelToast: UILabel {\n\n    static let insetHor:CGFloat = 20\n    static let insetVer:CGFloat = 10\n    \/\/ Only override draw() if you perform custom drawing.\n    \/\/ An empty implementation adversely affects performance during animation.\n    override func draw(_ rect: CGRect) {\n        \/\/ Drawing code\n        let insets = UIEdgeInsets(top: 10, left: 20, bottom: 10, right: 20)\n        super.drawText(in: rect.inset(by: insets))\n\/\/        super.draw(rect)\n        \n    }\n    override init(frame: CGRect) {\n        super.init(frame: frame)\n        self.numberOfLines = 0\n    }\n    \n    required init?(coder: NSCoder) {\n        fatalError(\"init(coder:) has not been implemented\")\n    }\n    \n}\n<\/pre>\n\n\n\n

\u7528\u6cd5\u5982\u4e0b\uff1a<\/p>\n\n\n\n

Tools.toast(msg: \"\u9752\u6625\u90e8\u843d\uff01GREAT!www.youthtribe.com\uff01\", seconds: 3, vc: self)<\/pre>\n\n\n\n

\u6548\u679c\u5982\u4e0b\uff0c\u7c7b\u4f3candroid\u7684toast\uff1a<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n
\"\"<\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"

\u81ea\u5df1\u8bbe\u8ba1\u7684\u82f9\u679cios\u7684\u4e00\u4e2a\u7c7b\u4f3c\u5b89\u5353\u7684TOAST\u7684\u4fe1\u606f\u663e\u793a\u63d0\u793a\u529f\u80fd\uff0c\u57fa\u4e8eswift5\u5f00\u53d1\u3002\u53ef\u4ee5\u6307\u5b9a \u663e\u793a\u65f6\u957f\u3002\u5355\u4f4d \u79d2\uff0c\u53ef\u4ee5\u662f\u5c0f\u6570\uff0c\u6bd4\u59822.5\u79d2\u3002 \/\/ \/\/ Tools.swift \/\/ Mark \/\/ \/\/ Created by nelson on 2022\/12\/14. \/\/ import Foundation import UIKit \/\/ \u81ea\u5df1\u6574\u7684\u4e00\u4e2a\u5de5\u5177\u7c7b class Tools { static func toast(msg:String,seconds:Double,vc:UIViewController){ \/\/\u5f97\u5230\u5f53\u524d UIViewController \u7684 \u5b89\u5168\u663e\u793a\u533a\u57df le<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[318,319],"tags":[322,320,321,323],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/2023"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=2023"}],"version-history":[{"count":3,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/2023\/revisions"}],"predecessor-version":[{"id":2030,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/2023\/revisions\/2030"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=2023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=2023"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=2023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}},{"id":2014,"date":"2022-10-21T17:44:53","date_gmt":"2022-10-21T09:44:53","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=2014"},"modified":"2022-10-21T17:44:53","modified_gmt":"2022-10-21T09:44:53","slug":"%e4%b8%ad%e5%9b%bd%e5%b9%bf%e4%b8%9c%e7%94%b5%e4%bf%a1%ef%bc%88%e6%b7%b1%e5%9c%b3%ef%bc%89%e6%89%8b%e6%9c%bawifi%e5%be%88%e5%8d%a1%e6%88%96%e8%80%85%e6%89%93%e4%b8%8d%e5%bc%80%e7%9a%84%e8%a7%a3","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/2014","title":{"rendered":"\u4e2d\u56fd\u5e7f\u4e1c\u7535\u4fe1\uff08\u6df1\u5733\uff09\u624b\u673awifi\u5f88\u5361\u6216\u8005\u6253\u4e0d\u5f00\u7684\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"\n

\u6211\u662f\u4e2d\u56fd\u5e7f\u4e1c\u7535\u4fe1\uff08\u6df1\u5733\uff09\uff0c\u624b\u673a\u94fe\u63a5\u81ea\u5df1\u7684wifi \u4f1a\u9047\u5230\u8fd9\u6837\u7684\u60c5\u51b5<\/p>\n\n\n\n

  • \u7ecf\u5e38\u6253\u4e0d\u5f00\u624b\u673a\u7f51\u7ad9\uff0c\u6bd4\u5982 m.sohu.com<\/li>
  • \u6d4f\u89c8\u624b\u673a\u7f51\u7ad9 \u5076\u5c14\u4f1a\u4f1a\u5f39\u51fa\u6076\u610f\u5e7f\u544a<\/li>
  • \u5feb\u624b\uff0c\u6296\u97f3\u7b49\u77ed\u89c6\u9891\u5f88\u5361\uff0c\u6709\u65f6\u6839\u672c\u6253\u4e0d\u5f00<\/li><\/ul>\n\n\n\n

    \u53ef\u662f\u6211\u7535\u8111\u8fde\u63a5\u7684\u540c\u4e00\u4e2awifi\u5c31\u4e0d\u5361\uff0c\u4e3a\u4ec0\u4e48\u5462\uff1f<\/p>\n\n\n\n

    \u5f00\u59cb\u6211\u8ba4\u4e3a\u662f\u4ec0\u4e48dns\u88ab\u631f\u6301\uff0c\u4e0d\u5065\u5eb7dns\u5bfc\u81f4\u7684\uff0c\u4f46\u8bd5\u4e86\u591a\u4e2adns\u90fd\u4e0d\u884c\u3002<\/p>\n\n\n\n

    \u4e3a\u4ec0\u4e48\u5462\uff1f\u9996\u5148\uff0c\u6211\u7684\u7535\u8111\u4e4b\u524d\u4e5f\u662f\u6709\u4e00\u4e9b\u7f51\u7ad9\u6253\u4e0d\u5f00\uff0c\u5f53\u65f6\u7684\u89e3\u51b3\u529e\u6cd5\u662f \u7981\u7528\u7535\u8111\u4e0a\u7684ip6.\u4eca\u5929\u6211\u4e5f\u672c\u60f3\u7981\u7528\u624b\u673a\u4e0a\u7684ip6\u534f\u8bae\u7684\uff0c\u4f46\u662f\u7f51\u7edc\u641c\u7d22\u4e86\u4e0b\uff0c\u53d1\u73b0 \u624b\u673a\u4e0a\u4e0d\u652f\u6301\u7981\u7528ip6\u534f\u8bae\u3002<\/p>\n\n\n\n

    \u4e0b\u56fe\u662f\u7535\u8111\u4e0a\uff0c\u627e\u5230\u7f51\u7edc\u9002\u914d\u5668\u9009\u9879\uff0c\u5c5e\u6027\uff0c\u53ea\u52fe\u9009ip4,\u4e0d\u52fe\u9009ip6\u3002\u4ece\u800c\u00a0\u7981\u7528ip6\u3002<\/p>\n\n\n\n

    \"\"<\/a><\/figure>\n\n\n\n

    \u7136\u540e\uff0c\u6211\u5c31\u6253\u5f00\u8def\u7531\u5668\uff0c\u6211\u7684\u8def\u7531\u5668\u662f\u53cb\u534ept632\uff0c\u8d85\u7ea7\u7ba1\u7406\u5458\u7528\u6237\u540d:telecomadmin\u00a0\u5bc6\u7801:nE7jA%5m\uff0c\u6709\u7f51\u7edc\u8fde\u63a5\u90a3\u91cc\uff0c\u6709\u4e2ainternet\u8fde\u63a5\uff0c\u5728\u534f\u8bae\u90a3\u91cc\u53ea\u9009\u62e9ip4\u5c31\u53ef\u4ee5\u4e86\uff0c\u9ed8\u8ba4\u662fip4\/ip6.<\/p>\n\n\n\n

    \"\"<\/a><\/figure>\n\n\n\n

    \u7136\u540e\u624b\u673a\u4e0a\u7f51\u5c31\u4e00\u5207\u6b63\u5e38\u4e86\u3002<\/p>\n\n\n\n

    \u603b\u7ed3\uff1a\u73b0\u9636\u6bb5ip6\u8fd8\u6709\u5f88\u591a\u95ee\u9898\uff0c\u5f88\u5783\u573e\uff0c\u4e0d\u5efa\u8bae\u4f7f\u7528\uff01\uff01\uff01\uff08\u4e25\u8c28\u70b9\u8bf4\uff0c\u5728\u90e8\u5206\u5730\u65b9\u4f1a\u6709\u95ee\u9898\uff0c\u6bd4\u5982 \u6df1\u5733\u7535\u4fe1\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u6211\u662f\u4e2d\u56fd\u5e7f\u4e1c\u7535\u4fe1\uff08\u6df1\u5733\uff09\uff0c\u624b\u673a\u94fe\u63a5\u81ea\u5df1\u7684wifi \u4f1a\u9047\u5230\u8fd9\u6837\u7684\u60c5\u51b5 \u7ecf\u5e38\u6253\u4e0d\u5f00\u624b\u673a\u7f51\u7ad9\uff0c\u6bd4\u5982 m.sohu.com \u6d4f\u89c8\u624b\u673a\u7f51\u7ad9 \u5076\u5c14\u4f1a\u4f1a\u5f39\u51fa\u6076\u610f\u5e7f\u544a \u5feb\u624b\uff0c\u6296\u97f3\u7b49\u77ed\u89c6\u9891\u5f88\u5361\uff0c\u6709\u65f6\u6839\u672c\u6253\u4e0d\u5f00 \u53ef\u662f\u6211\u7535\u8111\u8fde\u63a5\u7684\u540c\u4e00\u4e2awifi\u5c31\u4e0d\u5361\uff0c\u4e3a\u4ec0\u4e48\u5462\uff1f \u5f00\u59cb\u6211\u8ba4\u4e3a\u662f\u4ec0\u4e48dns\u88ab\u631f\u6301\uff0c\u4e0d\u5065\u5eb7dns\u5bfc\u81f4\u7684\uff0c\u4f46\u8bd5\u4e86\u591a\u4e2adns\u90fd\u4e0d\u884c\u3002 \u4e3a\u4ec0\u4e48\u5462\uff1f\u9996\u5148\uff0c\u6211\u7684\u7535\u8111\u4e4b\u524d\u4e5f\u662f\u6709\u4e00\u4e9b\u7f51\u7ad9\u6253\u4e0d\u5f00\uff0c\u5f53\u65f6\u7684\u89e3\u51b3\u529e\u6cd5\u662f \u7981\u7528\u7535\u8111\u4e0a\u7684ip6.\u4eca\u5929\u6211\u4e5f\u672c\u60f3\u7981\u7528\u624b\u673a\u4e0a\u7684ip6\u534f\u8bae\u7684\uff0c\u4f46\u662f\u7f51\u7edc\u641c\u7d22\u4e86\u4e0b\uff0c\u53d1\u73b0 \u624b\u673a\u4e0a\u4e0d\u652f\u6301\u7981\u7528ip6\u534f\u8bae\u3002 \u4e0b\u56fe\u662f\u7535\u8111\u4e0a\uff0c\u627e\u5230\u7f51\u7edc\u9002\u914d\u5668\u9009\u9879\uff0c\u5c5e\u6027\uff0c\u53ea\u52fe\u9009ip4<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/2014"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=2014"}],"version-history":[{"count":1,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/2014\/revisions"}],"predecessor-version":[{"id":2017,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/2014\/revisions\/2017"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=2014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=2014"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=2014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}},{"id":2010,"date":"2022-10-21T17:42:46","date_gmt":"2022-10-21T09:42:46","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=2010"},"modified":"2022-10-21T17:42:46","modified_gmt":"2022-10-21T09:42:46","slug":"%e8%be%be%e8%8a%ac%e5%a5%87davinci17%e5%92%8c18%e7%89%88%e6%9c%ac%e6%89%93%e5%bc%80%e5%b7%a5%e7%a8%8b%e4%bc%9a%e5%8d%a1%e6%ad%bb%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/2010","title":{"rendered":"\u8fbe\u82ac\u5947Davinci17\u548c18\u7248\u672c\u6253\u5f00\u5de5\u7a0b\u4f1a\u5361\u6b7b\u7684\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"\n

    \"\"<\/a><\/figure>\n\n\n\n

    \u6700\u8fd1\u60f3\u6363\u9f13\u6363\u9f13\u514d\u8d39\u7684\u89c6\u9891\u7f16\u8f91\u8f6f\u4ef6\u00a0DaVinci\uff0c\u4e2d\u6587\u540d\u5b57\u4e3a\u8fbe\u82ac\u5947\u8f6f\u4ef6\u3002\u4e4b\u524d\u4e0b\u8f7d\u7684\u662f17\u7248\u672c\uff0c\u6700\u8fd1\u4e0b\u8f7d\u7684\u662f\u6700\u65b0\u00a018\u00a0beta\u7248\u672c\u3002<\/p>\n\n\n\n

    \u4f46\u662f\u5f88\u9057\u61be\uff0c\u5f53\u65f6\u4e0b\u8f7d\u5b89\u88c5\u4e8617\u7248\u672c\uff0c\u4f46\u662f\u8f6f\u4ef6\u4e0d\u6b63\u5e38\u3002\u8868\u73b0\u4e3a\u5728\u8fdb\u5165\u4e86\u8f6f\u4ef6\u754c\u9762\u540e\uff0c\u5728\u9009\u62e9\u5de5\u7a0b\u9879\u76ee\uff0c\u6216\u8005\u9879\u76ee\u540e\uff0c\u4f1a\u6709\u6781\u5927\u6982\u7387\u5361\u6b7b\uff08\u4e5f\u6709\u5c0f\u6982\u7387\u4f1a\u6b63\u5e38\u8fdb\u5165\uff0c\u6216\u8005\u5f88\u4e45\u5f88\u4e45\u624d\u8fdb\u5165\uff09\uff0c\u957f\u65f6\u95f4\u6ca1\u6709\u54cd\u5e94\u3002\u663e\u7136\u8f6f\u4ef6\u4e0d\u6b63\u5e38\u3002\u5f53\u65f6\u6211\u611f\u89c9\u662f17\u7248\u672c\u6709bug\uff08\u4f46\u9690\u7ea6\u4e5f\u611f\u89c9\u662f\u548c\u81ea\u5df1\u7535\u8111\u73af\u5883\u6709\u51b2\u7a81\u4e86\uff0c\u6bd5\u7adf\u8fd9\u4e48\u5927\u7684\u51fa\u540d\u7684\u89c6\u9891\u7f16\u8f91\u8f6f\u4ef6\uff0c\u5e94\u8be5\u4e0d\u4f1a\u6709\u592a\u5927\u7684bug\u7684\uff09\u3002<\/p>\n\n\n\n

    \u7ed3\u679c\u597d\u4e0d\u5bb9\u6613\u7b49\u5230\u4e8618\u7248\u672c\uff0c\u4e0b\u8f7d\uff0c\u5b89\u88c5\uff0c\u7ed3\u679c\u8fd8\u662f\u4e00\u6837\uff0c\u8fd8\u662f\u8fdb\u5165\u9879\u76ee\u5de5\u7a0b\u4f1a\u5361\u6b7b\u3002<\/p>\n\n\n\n

    \u7f51\u4e0a\u641c\u7d22\u4e86\u4e0b\uff0c\u6709\u8bf4\u662f\u5b57\u4f53\u51b2\u7a81\u7684\uff0c\u6709\u8bf4\u662f\u8f6f\u4ef6\u7684\u7f51\u7edc\u8bbf\u95ee\u6743\u9650\u7684\u95ee\u9898\uff0c\u4f46\u7ecf\u6211\u9a8c\u8bc1\u90fd\u4e0d\u662f\u3002\u540e\u6765\u6709\u4eba\u8bf4\u662f\u56e0\u4e3a\u81ea\u5df1\u63d2\u6709USB\u8033\u673a\u7684\u539f\u56e0\uff0c\u6211\u521d\u6b65\u611f\u89c9\u662f\u8fd9\u4e2a\u539f\u56e0\u3002\u7136\u540e\u6211\u5c31\u5728\u7535\u8111\u7684\u8bbe\u5907\u7ba1\u7406\u5668\u4e0a\u7981\u7528\u4e86usb\u8033\u673a\uff0c\u53d1\u73b0\u95ee\u9898\u4f9d\u65e7\u3002\u4f46\u7531\u4e8e\u8033\u673a\u662f\u63d2\u5728\u7535\u8111\u540e\u8fb9\uff0c\u6211\u4e5f\u61d2\u5f97\u6363\u9f13\uff0c\u6ca1\u6709\u7269\u7406\u4e0a\u62d4\u51fausb\u8033\u673a\uff0c\u5c31\u6682\u65f6\u653e\u4e0b\u4e86\u3002\u4f46\u6211\u611f\u89c9\u5c31\u662fusb\u8033\u673a\u7684\u51b2\u7a81\u95ee\u9898<\/strong>\u3002<\/p>\n\n\n\n

    \u4eca\u5929\u6211\u628a\u7535\u8111\u4e3b\u673a \u62ac\u51fa\u6765\uff0c\u62d4\u6389usb\u8033\u673a\uff0c\u6253\u5f00\u8f6f\u4ef6 \uff0c\u4e00\u5207\u6b63\u5e38\u4e86\u3002\u91cd\u590d\u51e0\u6b21\uff0c\u90fd\u5f88ok\u3002<\/p>\n\n\n\n

    \u6240\u4ee5\u8db3\u4ee5\u8bc1\u660e\uff0cDaVinci\u00a017\u00a0\u548c\u6700\u65b0\u768418\u7248\u672c\u00a0\uff0c\u662f\u5b58\u5728\u548cusb\u8033\u673a\u51b2\u7a81\u7684\u95ee\u9898\u7684\uff08\u4e5f\u4e0d\u6562\u65ad\u7136\u8bf4\u7b97\u662fbug\uff0c\u53ea\u80fd\u8bf4\u662f\u4e2a\u95ee\u9898\uff01\uff09<\/strong><\/p>\n\n\n\n

    \u6587\u7ae0\u6765\u6e90\uff1ahttps:\/\/www.nbqq.net\/article\/show\/117<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

    \u6700\u8fd1\u60f3\u6363\u9f13\u6363\u9f13\u514d\u8d39\u7684\u89c6\u9891\u7f16\u8f91\u8f6f\u4ef6\u00a0DaVinci\uff0c\u4e2d\u6587\u540d\u5b57\u4e3a\u8fbe\u82ac\u5947\u8f6f\u4ef6\u3002\u4e4b\u524d\u4e0b\u8f7d\u7684\u662f17\u7248\u672c\uff0c\u6700\u8fd1\u4e0b\u8f7d\u7684\u662f\u6700\u65b0\u00a018\u00a0beta\u7248\u672c\u3002 \u4f46\u662f\u5f88\u9057\u61be\uff0c\u5f53\u65f6\u4e0b\u8f7d\u5b89\u88c5\u4e8617\u7248\u672c\uff0c\u4f46\u662f\u8f6f\u4ef6\u4e0d\u6b63\u5e38\u3002\u8868\u73b0\u4e3a\u5728\u8fdb\u5165\u4e86\u8f6f\u4ef6\u754c\u9762\u540e\uff0c\u5728\u9009\u62e9\u5de5\u7a0b\u9879\u76ee\uff0c\u6216\u8005\u9879\u76ee\u540e\uff0c\u4f1a\u6709\u6781\u5927\u6982\u7387\u5361\u6b7b\uff08\u4e5f\u6709\u5c0f\u6982\u7387\u4f1a\u6b63\u5e38\u8fdb\u5165\uff0c\u6216\u8005\u5f88\u4e45\u5f88\u4e45\u624d\u8fdb\u5165\uff09\uff0c\u957f\u65f6\u95f4\u6ca1\u6709\u54cd\u5e94\u3002\u663e\u7136\u8f6f\u4ef6\u4e0d\u6b63\u5e38\u3002\u5f53\u65f6\u6211\u611f\u89c9\u662f17\u7248\u672c\u6709bug\uff08\u4f46\u9690\u7ea6\u4e5f\u611f\u89c9\u662f\u548c\u81ea\u5df1\u7535\u8111\u73af\u5883\u6709\u51b2\u7a81\u4e86\uff0c\u6bd5\u7adf\u8fd9\u4e48\u5927\u7684\u51fa\u540d\u7684\u89c6\u9891\u7f16\u8f91\u8f6f\u4ef6\uff0c\u5e94\u8be5\u4e0d\u4f1a\u6709\u592a\u5927\u7684bug\u7684\uff09\u3002 \u7ed3\u679c\u597d\u4e0d\u5bb9\u6613\u7b49\u5230\u4e8618\u7248\u672c\uff0c\u4e0b\u8f7d\uff0c\u5b89\u88c5\uff0c\u7ed3\u679c\u8fd8\u662f\u4e00\u6837\uff0c\u8fd8\u662f\u8fdb\u5165\u9879\u76ee\u5de5\u7a0b\u4f1a\u5361\u6b7b\u3002 \u7f51\u4e0a\u641c\u7d22\u4e86\u4e0b\uff0c\u6709\u8bf4\u662f\u5b57\u4f53\u51b2\u7a81\u7684\uff0c\u6709\u8bf4\u662f\u8f6f\u4ef6\u7684\u7f51\u7edc\u8bbf\u95ee\u6743\u9650<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[316,317,315],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/2010"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=2010"}],"version-history":[{"count":1,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/2010\/revisions"}],"predecessor-version":[{"id":2012,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/2010\/revisions\/2012"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=2010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=2010"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=2010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}},{"id":1973,"date":"2022-04-12T23:38:45","date_gmt":"2022-04-12T15:38:45","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1973"},"modified":"2022-04-12T23:39:29","modified_gmt":"2022-04-12T15:39:29","slug":"csgo%e9%aa%97%e5%ad%90%ef%bc%8cb5%e5%b9%b3%e5%8f%b0%e9%94%a6%e6%a0%87%e8%b5%9b%ef%bc%8ccsgo%e5%9b%a2%e9%98%9f","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1973","title":{"rendered":"csgo\u9a97\u5b50\uff0cb5\u5e73\u53f0\u9526\u6807\u8d5b\uff0ccsgo\u56e2\u961f \u829d\u58eb\u53f2\u83b1\u59c6 76561198991399077"},"content":{"rendered":"\n

    \u7528\u6237\u540d\uff1a\u829d\u58eb\u53f2\u83b1\u59c6<\/p>\n\n\n\n

    steamid \uff1ahttps:\/\/steamcommunity.com\/profiles\/76561198991399077\/<\/p>\n\n\n\n

    76561198991399077 <\/p>\n\n\n\n

    \u4ee5\u4e0b\u662f\u4ed6\u7684\u5bf9\u8bdd\u5957\u8def\uff1a<\/p>\n\n\n\n

    \u829d\u58eb\u53f2\u83b1\u59c6\u4e0b\u534810:51
    zai ?
    zai ?
    \u829d\u58eb\u53f2\u83b1\u59c6\u4e0b\u534811:10
    \u54c8\u54c8
    \u6211\u5c31\u60f3\u548c\u4f60\u4e00\u8d77\u6253cs
    \u4f60\u6709\u6ca1\u6709\u81ea\u5df1\u7684csgo\u56e2\u961f\u5440?Ovo
    \u829d\u58eb\u53f2\u83b1\u59c6\u4e0b\u534811:22
    \u54e6\u54e6
    \u6211\u4eec\u5728b5\u8fdb\u884ccsgo\u9526\u6807\u8d5b,\u8fd8\u9700\u8981\u6253\u4e00\u573a\u3002\u4f60\u80fd\u4e0d\u80fd\u52a0\u5165\u6211\u4eec?\u6211\u4eec\u5728b5 TYLOO\u6253qaq<\/p>\n\n\n\n

    \"\"<\/a><\/figure>\n\n\n\n

    \u6240\u4ee5\uff0c\u5927\u5bb6\u4e00\u5b9a\u8981\u5c0f\u5fc3\uff0c\u8c28\u9632\u4e0a\u5f53\u53d7\u9a97\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u7528\u6237\u540d\uff1a\u829d\u58eb\u53f2\u83b1\u59c6 steamid \uff1ahttps:\/\/steamcommunity.com\/profiles\/76561198991399077\/ 76561198991399077 \u4ee5\u4e0b\u662f\u4ed6\u7684\u5bf9\u8bdd\u5957\u8def\uff1a \u829d\u58eb\u53f2\u83b1\u59c6\u4e0b\u534810:51zai ?zai ?\u829d\u58eb\u53f2\u83b1\u59c6\u4e0b\u534811:10\u54c8\u54c8\u6211\u5c31\u60f3\u548c\u4f60\u4e00\u8d77\u6253cs\u4f60\u6709\u6ca1\u6709\u81ea\u5df1\u7684csgo\u56e2\u961f\u5440?Ovo\u829d\u58eb\u53f2\u83b1\u59c6\u4e0b\u534811:22\u54e6\u54e6\u6211\u4eec\u5728b5\u8fdb\u884ccsgo\u9526\u6807\u8d5b,\u8fd8\u9700\u8981\u6253\u4e00\u573a\u3002\u4f60\u80fd\u4e0d\u80fd\u52a0\u5165\u6211\u4eec?\u6211\u4eec\u5728b5 TYLOO\u6253qaq \u6240\u4ee5\uff0c\u5927\u5bb6\u4e00\u5b9a\u8981\u5c0f\u5fc3\uff0c\u8c28\u9632\u4e0a\u5f53\u53d7\u9a97\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[294,1],"tags":[313,311,310,312],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1973"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=1973"}],"version-history":[{"count":2,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1973\/revisions"}],"predecessor-version":[{"id":1976,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1973\/revisions\/1976"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1973"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}},{"id":1964,"date":"2022-02-07T22:45:37","date_gmt":"2022-02-07T14:45:37","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1964"},"modified":"2022-02-07T22:45:37","modified_gmt":"2022-02-07T14:45:37","slug":"1964","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1964","title":{"rendered":"???"},"content":{"rendered":"\n

    \"\"<\/a><\/figure>\n\n\n\n

    http:\/\/paper.ce.cn\/jjrb\/html\/2011-01\/30\/content_136601.htm<\/p>\n\n\n\n

    \"\"<\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"

    http:\/\/paper.ce.cn\/jjrb\/html\/2011-01\/30\/content_136601.htm<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[75],"tags":[],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1964"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=1964"}],"version-history":[{"count":1,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1964\/revisions"}],"predecessor-version":[{"id":1967,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1964\/revisions\/1967"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1964"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}},{"id":1960,"date":"2022-02-06T15:47:57","date_gmt":"2022-02-06T07:47:57","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1960"},"modified":"2022-02-06T15:47:57","modified_gmt":"2022-02-06T07:47:57","slug":"qt5%e5%a6%82%e4%bd%95%e5%be%97%e5%88%b0%e6%96%87%e4%bb%b6%e7%9a%84md5%e5%80%bc","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1960","title":{"rendered":"QT5\u5982\u4f55\u5f97\u5230\u6587\u4ef6\u7684md5\u503c"},"content":{"rendered":"\n

    \u76f4\u63a5\u4e0a\u4ee3\u7801\u5427\uff0cqt\u5f97\u5230\u6587\u4ef6md5\u7684\u503c\u5e94\u8be5\u8fd8\u662f\u6bd4\u8f83\u5e38\u7528\u5230\u7684\u4e00\u4e2a\u529f\u80fd\u3002<\/p>\n\n\n\n

    QString ThreadDownload::getFileMd5(QString filename)\r\n{\r\n    QFile theFile(filename);\r\n    if(!theFile.open(QIODevice::ReadOnly)){\r\n        return \"failed\";\r\n    }\r\n    QByteArray ba = QCryptographicHash::hash(theFile.readAll(), QCryptographicHash::Md5);\r\n    theFile.close();\r\n    return QString(ba.toHex());\r\n\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"

    \u76f4\u63a5\u4e0a\u4ee3\u7801\u5427\uff0cqt\u5f97\u5230\u6587\u4ef6md5\u7684\u503c\u5e94\u8be5\u8fd8\u662f\u6bd4\u8f83\u5e38\u7528\u5230\u7684\u4e00\u4e2a\u529f\u80fd\u3002 QString ThreadDownload::getFileMd5(QString filename) { QFile theFile(filename); if(!theFile.open(QIODevice::ReadOnly)){ return “failed”; } QByteArray ba = QCryptographicHash::hash(theFile.readAll(), QCryptographicHash::Md5); theFile.close(); return QString(ba.toHex(<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,296,9],"tags":[295,309],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1960"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=1960"}],"version-history":[{"count":1,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1960\/revisions"}],"predecessor-version":[{"id":1961,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1960\/revisions\/1961"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1960"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}},{"id":1950,"date":"2022-02-06T01:57:20","date_gmt":"2022-02-05T17:57:20","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1950"},"modified":"2022-02-06T02:08:40","modified_gmt":"2022-02-05T18:08:40","slug":"%e9%98%bf%e9%87%8c%e4%ba%91%e5%ad%98%e5%82%a8-oss-%e7%9a%84-c%e7%9b%b8%e5%85%b3%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1950","title":{"rendered":"\u963f\u91cc\u4e91\u5b58\u50a8 oss \u7684 c++\u76f8\u5173\u95ee\u9898\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"\n

    \u8fd9\u4e24\u5929\u5728\u6363\u9f13\u6d4b\u8bd5\u963f\u91cc\u4e91\u7684\u5bf9\u8c61\u5b58\u50a8\uff0c\u963f\u91cc\u4e91\u79f0\u4e3a \u963f\u91cc\u4e91\u5bf9\u8c61\u5b58\u50a8OSS\uff08Object Storage Service\uff09\u3002<\/p>\n\n\n\n

    \u9996\u5148\uff0c\u76f8\u5173sdk\u662f\u653e\u5728 github\u7684\u3002so\uff0c\u9700\u8981\u79d1\u5b66\u4e0a\u7f51\u3002\u5f88\u662f\u4e0d\u65b9\u4fbf\u3002<\/p>\n\n\n\n

    \u518d\u8005\u5c31\u662f\u9047\u5230\u4e86\u63d0\u4f9b\u7684\u6559\u7a0b\u9ed8\u8ba4\u7f16\u8bd1\u51fa\u6765\u7684lib\u662f64\u4f4d\u7684\u3002\u6211\u7684\u9879\u76ee\u5747\u662f32\u4f4d\u4e0b\u5f00\u53d1\u7684\u3002\u5982\u679c\u8bbe\u7f6e\u4e3awin32\u7684\uff0cvs\u7f16\u8bd1\u65f6\u4f1a\u6709\u5982\u4e0b\u7684\u63d0\u793a\uff1a<\/p>\n\n\n\n

    \u9519\u8bef LNK1112 \u6a21\u5757\u8ba1\u7b97\u673a\u7c7b\u578b\u201cx86\u201d\u4e0e\u76ee\u6807\u8ba1\u7b97\u673a\u7c7b\u578b\u201cx64\u201d\u51b2\u7a81 cpp-sdk F:\\\u8fc5\u96f7\u4e0b\u8f7d\\aliyun-oss-cpp-sdk-1.9.0\\build\\sdk\\Debug\\OssClient.obj 1<\/code><\/pre>\n\n\n\n

    \u89e3\u51b3\u529e\u6cd5\u662f\u4fee\u6539\u9879\u76ee\u7684\u5c5e\u6027\u4e2d\u7684 \u6587\u6863\u7ba1\u7406\u7a0b\u5e8f\u7684-\u300b\u6240\u6709\u9009\u9879-\u300b\u9644\u52a0\u9009\u9879\uff0c\/machine:x64 \u6539\u4e3a \/machine:x86<\/p>\n\n\n\n

    \u4f46\u597d\u50cf\u5404\u4e2avs\u7248\u672c\u7684\u8fd9\u4e2a\u5c5e\u6027\u7684\u4f4d\u7f6e\u6709\u6240\u4e0d\u4e00\u6837\uff0c\u6ce8\u610f\u533a\u522b\u5bf9\u5f85\u3002<\/p>\n\n\n\n

    \"\"<\/a><\/figure>\n\n\n\n

    \u8fd8\u6709\u5982\u4e0b\u95ee\u9898\uff1a<\/p>\n\n\n\n

    \u963f\u91cc\u4e91oss\u4e5f\u96c6\u6210\u4e86\u76f8\u5173\u7684\u7b2c\u4e09\u65b9\u5e93\uff0clibcurl,ssleasy\u7b49\uff0c\u8fd9\u548c\u6211\u5f53\u524d\u9879\u76ee\u7684\u4e0d\u517c\u5bb9\u3002\u751f\u6210\u7684exe\u7a0b\u5e8f\u4f1a\u6709\u5982\u4e0b\u63d0\u793a\uff1a<\/p>\n\n\n\n

    \"\"<\/a><\/figure>\n\n\n\n

    \u7136\u540e\u6211\u5c31\u7528\u4ed6\u63d0\u4f9b\u7684dll\u76f4\u63a5\u66ff\u6362\u4e86\u6211\u7684\u539f\u5148\u7684\u3002\u7b80\u5355\u770b\u662f\u6ca1\u95ee\u9898\uff0c\u53ef\u4ee5\u6b63\u5e38\u6267\u884c\uff08\u4f46\u771f\u4e0d\u786e\u4fdd\u5c31\u6ca1\u95ee\u9898\u5440\uff0c\u5185\u5fc3\u8fd8\u662f\u6bd4\u8f83\u62c5\u5fc3\u7684\uff09\u3002\u6240\u4ee5\u8fd8\u662f\u9700\u8981\u4ed4\u7ec6\u6d4b\u8bd5\u3002<\/p>\n\n\n\n

    \u8fd8\u6709\u5c31\u662f\uff0c\u597d\u50cf\u4ed6\u7684\u7b2c\u4e09\u65b9\u5e93\u7684dll\u53ea\u6709release\u7248\u672c\u7684\uff0c\u6ca1\u6709debug\u7684\uff0c\u8fd9\u6837\u7684\u8bdd\uff0c\u6211\u7684\u7a0b\u5e8f \u5728debug\u6a21\u5f0f\u4e0b\u5c31\u4e0d\u80fd\u6b63\u5e38\u8fd0\u884c\u4e86\uff0c\u53ea\u80fd\u5728release\u6a21\u5f0f\u4e0b\u5f00\u53d1\u4e86\u3002\u3002\u3002\u8fd9\uff0c\u4e5f\u662f\u4e2a\u95ee\u9898\u5440\u3002\u3002\u3002\u4e0d\u77e5\u9053\u600e\u4e48\u6574\u3002\u3002\u3002<\/p>\n\n\n\n

    \u6700\u5f00\u59cb\u662f\u6253\u7b97\u6363\u9f13\u817e\u8baf\u4e91\u5bf9\u8c61\u5b58\u50a8\u7684\uff0c\u611f\u89c9\u817e\u8baf\u7684\u7b2c\u4e09\u65b9\u5e93 \u4e5f\u4e0d\u597d\u5f04\u3002poco\u3002\u5c31\u653e\u5f03\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u8fd9\u4e24\u5929\u5728\u6363\u9f13\u6d4b\u8bd5\u963f\u91cc\u4e91\u7684\u5bf9\u8c61\u5b58\u50a8\uff0c\u963f\u91cc\u4e91\u79f0\u4e3a \u963f\u91cc\u4e91\u5bf9\u8c61\u5b58\u50a8OSS\uff08Object Storage Service\uff09\u3002 \u9996\u5148\uff0c\u76f8\u5173sdk\u662f\u653e\u5728 github\u7684\u3002so\uff0c\u9700\u8981\u79d1\u5b66\u4e0a\u7f51\u3002\u5f88\u662f\u4e0d\u65b9\u4fbf\u3002 \u518d\u8005\u5c31\u662f\u9047\u5230\u4e86\u63d0\u4f9b\u7684\u6559\u7a0b\u9ed8\u8ba4\u7f16\u8bd1\u51fa\u6765\u7684lib\u662f64\u4f4d\u7684\u3002\u6211\u7684\u9879\u76ee\u5747\u662f32\u4f4d\u4e0b\u5f00\u53d1\u7684\u3002\u5982\u679c\u8bbe\u7f6e\u4e3awin32\u7684\uff0cvs\u7f16\u8bd1\u65f6\u4f1a\u6709\u5982\u4e0b\u7684\u63d0\u793a\uff1a \u89e3\u51b3\u529e\u6cd5\u662f\u4fee\u6539\u9879\u76ee\u7684\u5c5e\u6027\u4e2d\u7684 \u6587\u6863\u7ba1\u7406\u7a0b\u5e8f\u7684-\u300b\u6240\u6709\u9009\u9879-\u300b\u9644\u52a0\u9009\u9879\uff0c\/machine:x64 \u6539\u4e3a \/machine:x86 \u4f46\u597d\u50cf\u5404\u4e2avs\u7248\u672c\u7684\u8fd9\u4e2a\u5c5e\u6027\u7684\u4f4d\u7f6e\u6709\u6240\u4e0d\u4e00\u6837\uff0c\u6ce8\u610f\u533a\u522b\u5bf9\u5f85\u3002 \u8fd8\u6709\u5982\u4e0b\u95ee\u9898\uff1a \u963f\u91cc\u4e91oss\u4e5f\u96c6\u6210\u4e86\u76f8\u5173\u7684\u7b2c\u4e09\u65b9\u5e93\uff0clibcurl,ssleasy<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,219,9],"tags":[],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1950"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=1950"}],"version-history":[{"count":5,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1950\/revisions"}],"predecessor-version":[{"id":1958,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1950\/revisions\/1958"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1950"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}},{"id":1946,"date":"2022-01-29T10:45:32","date_gmt":"2022-01-29T02:45:32","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1946"},"modified":"2022-01-29T10:46:14","modified_gmt":"2022-01-29T02:46:14","slug":"%e6%89%93%e4%b8%8d%e5%bc%80%e7%99%be%e5%ba%a6%e8%b4%b4%e5%90%a7%e5%92%8c%e7%99%be%e5%ba%a6%e7%9f%a5%e9%81%93%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1946","title":{"rendered":"\u6253\u4e0d\u5f00\u767e\u5ea6\u8d34\u5427\u548c\u767e\u5ea6\u77e5\u9053\u7684\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"\n

    \u6211\u7528\u7684\u7b14\u8bb0\u672c\u53ef\u4ee5\u7528\u767e\u5ea6\u641c\u7d22\uff0c\u4f46\u662f\u5374\u6b7b\u6d3b\u6253\u4e0d\u5f00\u767e\u5ea6\u77e5\u9053\u548c\u767e\u5ea6\u8d34\u5427\u3002\u540e\u6765\u60f3\u8d77\u6765\uff0c\u6211\u4e4b\u524d \u662f\u89e3\u51b3\u8fc7\u8fd9\u4e2a\u95ee\u9898\u7684\u3002\u539f\u56e0\u5c31\u662f\u628a\u81ea\u5df1\u7535\u8111\u7684\u7f51\u7edc\u7684IP6\u534f\u8bae\u7ed9\u7981\u7528\u4e86\uff0c\u8fd8\u7528\u4f20\u7edf\u7684IP4\u5c31\u53ef\u4ee5\u4e86\u3002\u81f3\u4e8e\u5177\u4f53\u662f\u4ec0\u4e48\u95ee\u9898\u5bfc\u81f4\u7684\u4e0d\u61d2\u5f97\u7814\u7a76\u641c\u7d22\u4e86\u3002\u53cd\u6b63\u7528IP4\u534f\u8bae\u4e5f\u6ca1\u4ec0\u4e48\u5f71\u54cd\u3002<\/p>\n\n\n\n

    \"\"<\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"

    \u6211\u7528\u7684\u7b14\u8bb0\u672c\u53ef\u4ee5\u7528\u767e\u5ea6\u641c\u7d22\uff0c\u4f46\u662f\u5374\u6b7b\u6d3b\u6253\u4e0d\u5f00\u767e\u5ea6\u77e5\u9053\u548c\u767e\u5ea6\u8d34\u5427\u3002\u540e\u6765\u60f3\u8d77\u6765\uff0c\u6211\u4e4b\u524d \u662f\u89e3\u51b3\u8fc7\u8fd9\u4e2a\u95ee\u9898\u7684\u3002\u539f\u56e0\u5c31\u662f\u628a\u81ea\u5df1\u7535\u8111\u7684\u7f51\u7edc\u7684IP6\u534f\u8bae\u7ed9\u7981\u7528\u4e86\uff0c\u8fd8\u7528\u4f20\u7edf\u7684IP4\u5c31\u53ef\u4ee5\u4e86\u3002\u81f3\u4e8e\u5177\u4f53\u662f\u4ec0\u4e48\u95ee\u9898\u5bfc\u81f4\u7684\u4e0d\u61d2\u5f97\u7814\u7a76\u641c\u7d22\u4e86\u3002\u53cd\u6b63\u7528IP4\u534f\u8bae\u4e5f\u6ca1\u4ec0\u4e48\u5f71\u54cd\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,9],"tags":[306,307,308],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1946"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=1946"}],"version-history":[{"count":1,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1946\/revisions"}],"predecessor-version":[{"id":1948,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1946\/revisions\/1948"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1946"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}},{"id":1932,"date":"2022-01-06T16:15:50","date_gmt":"2022-01-06T08:15:50","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1932"},"modified":"2022-01-07T19:03:22","modified_gmt":"2022-01-07T11:03:22","slug":"%e5%a6%82%e4%bd%95%e5%88%a9%e7%94%a8redis%e7%9a%84%e9%ab%98%e6%80%a7%e8%83%bd%e9%98%b2%e6%ad%a2%e9%9d%9e%e6%b3%95%e6%94%bb%e5%87%bb","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1932","title":{"rendered":"\u5982\u4f55\u5229\u7528redis\u7684\u9ad8\u6027\u80fd\u9632\u6b62\u975e\u6cd5\u653b\u51fb"},"content":{"rendered":"\n

    \u4e00\u4e9b\u5c0f\u9ed1\u5ba2\u4f1a\u8bd5\u56fe\u901a\u8fc7\u6b63\u5e38\u7684\u4f46\u9ad8\u9891\u7684\u3010\u6b63\u5e38\u8bbf\u95ee\u3011\u53bb\u67e5\u770b\u6211\u4eec\u7f51\u7ad9\u7684\u4e00\u4e9b\u9690\u85cf\u7684\u9875\u9762\uff0c\u6bd4\u5982\u7ba1\u7406\u5458\u767b\u5f55\u9875\u9762\u3002\u8fd8\u6709\u4e00\u79cd\u6bd4\u8f83\u5e38\u89c1\u7684\u662f\u53bb\u626b\u63cf\u4e00\u4e9b \u884c\u4e1a\u5185\u7684 \u73b0\u6210\u7684 \u6728\u9a6c\u6587\u4ef6\uff0c\u6765\u653b\u51fb\u6211\u4eec\u7684\u7f51\u7ad9\u3002\u56e0\u4e3a\u77ed\u65f6\u95f4\u5185\u4f1a\u6709\u5927\u91cf\u7684\u770b\u4f3c\u6b63\u5e38\u7684\u8bf7\u6c42\uff0c\u4f1a\u9020\u6210\u6027\u80fd\u4e0d\u9ad8\u7684\u670d\u52a1\u5668\u7684\u62a5\u8b66\uff0c\u5982\u5185\u5b58\u6216\u8005cpu\uff0c\u751a\u81f3\u5e26\u5bbd \u5403\u7d27\uff0c\u5f71\u54cd\u6b63\u5e38\u670d\u52a1\u3002<\/p>\n\n\n\n

    \u4e0b\u56fe\u4e3a\u975e\u6cd5\u8bf7\u6c42\u793a\u4f8b<\/p>\n\n\n\n

    \"\"<\/a><\/figure>\n\n\n\n

    \u53ef\u4ee5\u5229\u7528redis\u7684\u9ad8\u6027\u80fd\u4f18\u52bf\u53bb\u505a\u4e00\u4e9b\u6587\u7ae0\u3002<\/p>\n\n\n\n

    \u539f\u7406\u5c31\u662f\u7528\u7f51\u7ad9\u7a0b\u5e8f\u53bb\u5224\u65ad\u7528\u6237\u7684\u8bf7\u6c42\uff0c\u5982\u679c\u5224\u65ad\u51fa\u662f\u6076\u610f\u7684\uff0c\u90a3\u4e48\u628a\u8be5\u8bbf\u95ee\u8005\u8bb0\u5f55\u4e0b\u6765\u5b58\u50a8\u5230redis\u4e2d\u53bb\u3002\u5982\u679c\u8be5\u8bbf\u95ee\u8005\u518d\u6765\u8bf7\u6c42\uff0c\u90a3\u4e48\u76f4\u63a5\u7ed9\u4ed6\u8fd4\u56de500\u3002\u6b63\u5e38\u60c5\u51b5\u6765\u8bb2\uff0c\u9ed1\u5ba2\u7684\u626b\u63cf\u5de5\u5177\u5f97\u77e5500\u76f8\u5e94\u7801\u540e\uff0c\u5e94\u8be5\u4f1a\u505c\u6b62\u626b\u63cf\u5427\u3002\u5c31\u7b97\u4e0d\u505c\u6b62\uff0c\u90a3\u4e48redis\u7684\u9ad8\u6027\u80fd\u4e5f\u53ef\u4ee5\u62b5\u6321\u8fd9\u4e9b\u975e\u6cd5\u626b\u63cf\u8bf7\u6c42\uff0c\u4ece\u800c\u8fbe\u5230\u4fdd\u62a4\u670d\u52a1\u5668\u7684\u76ee\u7684\u3002\u901a\u5e38\u53ef\u4ee5\u8bbe\u7f6e\u4e00\u4e2a\u5c0f\u65f6\u5185\u7981\u6b62\u8be5ip\u7684\u6b63\u5e38\u8bbf\u95ee\u3002\u65f6\u95f4\u53ef\u4ee5\u81ea\u5df1\u8bbe\u7f6e\u3002<\/p>\n\n\n\n

    \u5982\u4f55\u5224\u65ad\u6076\u610f\u8bbf\u95ee\uff1a\u6bd4\u5982\u6211\u7684\u662fphp\u7a0b\u5e8f\uff0c\u5982\u679c\u7528\u6237\u7684\u8bf7\u6c42\u4e2d\u51fa\u73b0\u4e86 .asp\u6216\u8005.jsp\uff0c\u6216\u8005hack,hacker\u5b57\u6837\uff0c\u90a3\u4e48\u5c31\u5224\u65ad\u4f60\u5c0f\u5b50\u4e0d\u8001\u5b9e\uff0c\u5c31\u6253\u5165\u51b7\u5bab\u3002\u81f3\u4e8e\u52a0\u54ea\u4e9b\u5224\u65ad\u5b57\u7b26\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n\n\n\n

    \u9700\u8981\u670d\u52a1\u5668\u5b89\u88c5redis\uff0c\u6211\u8fd9\u91cc\u662f\u7528\u7684php\u505a\u4e86\u4e00\u4e2a\u793a\u4f8b\uff0c\u6211\u7684php\u6587\u4ef6\u540d\u4e3a\u3010illegal_deny.php\u3011\uff0c\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u5728\u7ad9\u70b9\u5165\u53e3\u5305\u542b\u6b64\u6587\u4ef6\u5373\u53ef\u3002 <\/p>\n\n\n\n

    require __DIR__.'\/..\/app\/diy\/illegal_deny.php';\n<\/code><\/pre>\n\n\n\n

    \u4e0b\u8fb9\u662f\u6587\u4ef6\u5185\u5bb9\u3002\u8bf7\u6839\u636e\u81ea\u5df1\u7684\u5b9e\u9645\u60c5\u51b5\u8fdb\u884c\u4fee\u6539\u3002<\/p>\n\n\n\n

    <?php\n\/\/redis\u7684\u914d\u7f6e\n\/\/define('REDIS_SERVER_IP', '121.40.24.38');\ndefine('REDIS_SERVER_IP', '127.0.0.1');\ndefine('REDIS_SERVER_PORT', 6379);\n\/\/auth\u5c31\u662f\u5bc6\u7801\ndefine('REDIS_SERVER_AUTH', 'yourpassword');\n\n\/\/\u7981\u6b62\u8bbf\u95ee\u7684\u65f6\u95f4\uff0c\u5355\u4f4d\u79d2 3600 = 1\u5c0f\u65f6\ndefine('DENY_TIME', 3600);\n\n\nfunction getRedis($db = 0){\n    \n    $redis = new \\Redis();\n    $res = $redis->connect(REDIS_SERVER_IP,REDIS_SERVER_PORT);\n    $redis->auth(REDIS_SERVER_AUTH);\n    $redis->select($db);\n    return $redis;\n}\n\n\/\/\u5982\u679c\u662f\u8bbf\u95ee\u4e00\u4e9b\u975e\u6cd5\u7f51\u5740\uff0c\u6bd4\u5982\u9ed1\u5ba2\uff0c\u5c31\u8fdb\u884c\u4e00\u6bb5\u65f6\u95f4\u7684\u8bbf\u95ee\u5c4f\u853d begin\n\/\/\u975e\u6cd5\u8bbf\u95ee\u6b21\u6570\n$illegal_attempt_count_key = 'ILLEGAL_ATTEMPT_COUNT';\n\n\/\/\u662f\u5426\u5df2\u7ecf\u88ab\u9650\u5236\u8bbf\u95ee\n$illegal_key = \"ILLEGAL_IP_\".$_SERVER['REMOTE_ADDR'];\n\/\/$illegal_key = \"ILLEGAL_IP_\".$_SERVER['HTTP_X_FORWARDED_FOR'];\n\n\n\n$uri = $_SERVER['REQUEST_URI'];\n\n\n$redis = getRedis();\n\/\/$redis->delete($illegal_key);\nif($redis->exists($illegal_key)){\n \n    header('HTTP\/1.1 500 Internal Server Error');\n    exit(0);\n}\n\n$limit_time = DENY_TIME;\/\/\u7981\u6b62\u65f6\u95f4\uff0c\u5355\u4f4d\u79d2\n\/\/\u5224\u65ad\u662f\u5426\u8981\u8fdb\u884c\u9650\u5236\n\n\/\/\u51e0\u4e2a\u7981\u6b62\u8bbf\u95ee\u7684\u76ee\u5f55\nif($uri == '\/admin'){\n    \/\/\n    $redis->setex($illegal_key,$limit_time,date(\"Y-m-d H:i:s\",time()));\n    $redis->incr($illegal_attempt_count_key);\n    header('HTTP\/1.1 500 Internal Server Error');\n    exit(0);\n}\n\n\/\/\u9650\u5236\u8bbf\u95ee\u5730\u5740\u5305\u542b\u7684\u4e00\u4e9b\u5173\u952e\u8bcd\uff0c\u53ea\u8981\u5339\u914d\u5230\u5c31\u8fdb\u884c\u9650\u5236\n$illegal_urls = ['hack','hacker','.asp','.jsp'];\nforeach ($illegal_urls as $url){\n    if(strpos($uri, $url)){\n        \/\/\n        $redis->setex($illegal_key,$limit_time,date(\"Y-m-d H:i:s\",time()));\n        $redis->incr($illegal_attempt_count_key);\n        \n        header('HTTP\/1.1 500 Internal Server Error');\n        exit(0);\n    }\n}\n\/\/\u5982\u679c\u662f\u8bbf\u95ee\u4e00\u4e9b\u975e\u6cd5\u7f51\u5740\uff0c\u6bd4\u5982\u9ed1\u5ba2\uff0c\u5c31\u8fdb\u884c\u4e00\u6bb5\u65f6\u95f4\u7684\u8bbf\u95ee\u5c4f\u853d over\n<\/code><\/pre>\n\n\n\n
    \n
    \n
    \n
    \n\n\n\n

    \u9644\uff1a\u5bf9\u6211\u76841cpu2G\u5185\u5b58\u7684\u670d\u52a1\u5668\u52a0\u4e86\u8fd9\u4e2a\u3010\u62a4\u76fe\u3011\u540e\uff0c\u670d\u52a1\u5668\u5c31\u4e0d\u4f1a\u518d\u62a5\u8b66\u4e86\uff08\u4e4b\u524d\u662fcpu \u4e00\u65e6\u8fc790%\u4f7f\u7528\u7387\u5c31\u4f1a\u53d1\u90ae\u4ef6\uff0c\u77ed\u4fe1\uff0c\u597d\u70e6\uff09\u3002\u771f\u9999\uff01\u8c01\u7528\u8c01\u8bf4\u597d\u3002<\/p>\n<\/div><\/div>\n<\/div>\n<\/div>\n\n\n\n

    <\/p>\n","protected":false},"excerpt":{"rendered":"

    \u4e00\u4e9b\u5c0f\u9ed1\u5ba2\u4f1a\u8bd5\u56fe\u901a\u8fc7\u6b63\u5e38\u7684\u4f46\u9ad8\u9891\u7684\u3010\u6b63\u5e38\u8bbf\u95ee\u3011\u53bb\u67e5\u770b\u6211\u4eec\u7f51\u7ad9\u7684\u4e00\u4e9b\u9690\u85cf\u7684\u9875\u9762\uff0c\u6bd4\u5982\u7ba1\u7406\u5458\u767b\u5f55\u9875\u9762\u3002\u8fd8\u6709\u4e00\u79cd\u6bd4\u8f83\u5e38\u89c1\u7684\u662f\u53bb\u626b\u63cf\u4e00\u4e9b \u884c\u4e1a\u5185\u7684 \u73b0\u6210\u7684 \u6728\u9a6c\u6587\u4ef6\uff0c\u6765\u653b\u51fb\u6211\u4eec\u7684\u7f51\u7ad9\u3002\u56e0\u4e3a\u77ed\u65f6\u95f4\u5185\u4f1a\u6709\u5927\u91cf\u7684\u770b\u4f3c\u6b63\u5e38\u7684\u8bf7\u6c42\uff0c\u4f1a\u9020\u6210\u6027\u80fd\u4e0d\u9ad8\u7684\u670d\u52a1\u5668\u7684\u62a5\u8b66\uff0c\u5982\u5185\u5b58\u6216\u8005cpu\uff0c\u751a\u81f3\u5e26\u5bbd \u5403\u7d27\uff0c\u5f71\u54cd\u6b63\u5e38\u670d\u52a1\u3002 \u4e0b\u56fe\u4e3a\u975e\u6cd5\u8bf7\u6c42\u793a\u4f8b \u53ef\u4ee5\u5229\u7528redis\u7684\u9ad8\u6027\u80fd\u4f18\u52bf\u53bb\u505a\u4e00\u4e9b\u6587\u7ae0\u3002 \u539f\u7406\u5c31\u662f\u7528\u7f51\u7ad9\u7a0b\u5e8f\u53bb\u5224\u65ad\u7528\u6237\u7684\u8bf7\u6c42\uff0c\u5982\u679c\u5224\u65ad\u51fa\u662f\u6076\u610f\u7684\uff0c\u90a3\u4e48\u628a\u8be5\u8bbf\u95ee\u8005\u8bb0\u5f55\u4e0b\u6765\u5b58\u50a8\u5230redis\u4e2d\u53bb\u3002\u5982\u679c\u8be5\u8bbf\u95ee\u8005\u518d\u6765\u8bf7\u6c42\uff0c\u90a3\u4e48\u76f4\u63a5\u7ed9\u4ed6\u8fd4\u56de500\u3002\u6b63\u5e38\u60c5\u51b5\u6765\u8bb2\uff0c\u9ed1\u5ba2\u7684\u626b\u63cf\u5de5\u5177\u5f97\u77e5500\u76f8\u5e94\u7801\u540e\uff0c\u5e94\u8be5\u4f1a\u505c\u6b62\u626b\u63cf\u5427\u3002\u5c31\u7b97\u4e0d\u505c\u6b62\uff0c\u90a3\u4e48redis\u7684<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,224],"tags":[304,303,305],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1932"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=1932"}],"version-history":[{"count":6,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1932\/revisions"}],"predecessor-version":[{"id":1944,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1932\/revisions\/1944"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1932"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}},{"id":1923,"date":"2021-11-23T15:22:43","date_gmt":"2021-11-23T07:22:43","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1923"},"modified":"2021-11-23T15:24:22","modified_gmt":"2021-11-23T07:24:22","slug":"%e5%90%84%e5%a4%a7%e7%bd%91%e7%9b%98%ef%bc%88%e7%99%be%e5%ba%a6%e4%ba%91%e7%9b%98%ef%bc%8c%e4%b8%bb%e8%a6%81%e8%af%b4%e7%9a%84%e5%b0%b1%e6%98%af%e4%bd%a0%ef%bc%89%e7%9c%9f%e7%9a%84%e8%90%bd%e5%ae%9e","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1923","title":{"rendered":"\u5404\u5927\u7f51\u76d8\uff08\u767e\u5ea6\u7f51\u76d8\uff0c\u4e3b\u8981\u8bf4\u7684\u5c31\u662f\u4f60\uff09\u771f\u7684\u843d\u5b9e\u56fd\u5bb6\u54cd\u5e94 \u514d\u8d39\u7528\u6237\u4e0d\u9650\u901f\u4e86\uff1f\u5047\u7684\uff01"},"content":{"rendered":"\n

    \u6628\u5929\u770b\u5230\u4e00\u4e2a\u6587\u7ae0\u8bf4\uff08\u6ce8\u610f\u662f\u6587\u7ae0\uff0c\u4e0d\u662f\u65b0\u95fb\uff0c\u4e2d\u56fd\u662f\u6ca1\u6709\u65b0\u95fb\u7684\uff09 \u7f51\u76d8\u4f01\u4e1a\u54cd\u5e94\u53f7\u53ec \u5bf9\u514d\u8d39\u7528\u6237\u4e0d\u9650\u901f\u4e86\u3002\u6587\u7ae0\u6807\u9898 \u5f88\u552c\u4eba\uff1a<\/p>\n\n\n\n

    \u91cd\u78c5\uff01\u7f51\u76d8\u6b63\u5f0f\u201c\u505c\u6b62\u9650\u901f\u201d\uff1a\u767e\u5ea6\u72c2\u559c\uff0c\u963f\u91cc\u54ed\u6655\uff1f<\/p>\n\n\n\n

    \u539f\u6587\uff1ahttps:\/\/m.sohu.com\/a\/502702718_324615\/?pvid=000115_3w_a&scm=1004.759734081562017792.0.0.0&spm=smwp.home.fd-it.4.1637611344659LytDbUX<\/p>\n\n\n\n

    \"\"<\/a><\/figure>\n\n\n\n

    \u6211\u770b\u5230\u540e\uff0c\u9996\u5148\u5c31\u662f\u4e0d\u4fe1\uff0c\u8fd9\u662f\u51fa\u4e8e\u81ea\u5df1\u7684\u8ba4\u77e5\u4e0a\u7684\u4e0d\u4fe1\u3002\u6211\u5f53\u65f6\u5c31\u89c9\u5f97\u4e0d\u4fe1\uff08\u6211\u5c31\u662f\u60f3\u8bf4 \u6211\u5bf9\u8fd9\u79cd\u9e1f\u62a5\u9053\u7684\u6000\u7591\u662f\u6b63\u786e\u7684\uff09\u3002\u4eca\u5929\u8bd5\u4e86\uff0c\u4e0d\u8fc7150k\u3002\u5927\u6982120k\u3002\u8fd8\u662f\u9650\u7684\u5f88\u4e25\u91cd\uff08\u6211\u8ba4\u4e3a500k\u4ee5\u4e0a\u624d\u7b97\u4e0d\u9650\u5236\uff0c\u4e5f\u4e0d\u5962\u6c42\u5b8c\u5168\u4e0d\u9650\u5236\u4e86\u3002\u4e3a\u4ec0\u4e48\u662f500K\u3002\u4f60\u8ba9\u770b\u4e2a\u9ad8\u6e05\u4e0d\u5361\u5c31\u53ef\u4ee5\u4e86\u3002\u963f\u5f25\u9640\u4f5b\u4e86\u3002\uff09\u3002<\/p>\n\n\n\n

    \u8fd8\u4ee5\u4e3a\u4e0d\u662f\u6700\u65b0\u7248\u672c\u7684\u539f\u56e0\uff0c\u7ed3\u679c\u5347\u7ea7\u4e00\u4e0b\uff0c\u8fd8\u662f\u4e00\u6837\u3002<\/p>\n\n\n\n

    \"\"<\/a><\/figure>\n\n\n\n

    \u6240\u4ee5\uff0c\u4e24\u70b9<\/p>\n\n\n\n

    \u4e00\u662f\u73b0\u5728\u7684\u7f51\u7edc\u4e0a\u591a\u6570\u7684\u6587\u7ae0\u5728\u770b\u5230\u540e\uff0c\u5728\u9009\u62e9\u76f8\u4fe1\u524d \u4e00\u5b9a\u8981\u601d\u8003\u4e00\u4e0b\u662f\u5426\u4e3a\u771f\u3002<\/p>\n\n\n\n

    \u4e8c\u662f\u56fd\u5bb6\u653f\u7b56\u7684\u54cd\u5e94\uff0c\u53f7\u53ec\u4e0e\u6700\u7ec8\u843d\u5b9e\uff0c\u591a\u6570\uff0c\u4fe9\u5b57\uff0c\u5475\u5475\u3002\uff08\u653f\u7b56\u9996\u5148\u662f\u8981\u5408\u7406\uff0c\u4eba\u5bb6\u7f51\u76d8\u90fd\u662f\u4f01\u4e1a\u662f\u8981\u6210\u672c\u7684\uff0c\u4f60\u56fd\u5bb6\u51ed\u4ec0\u4e48 \u4ee3\u8868\u7f51\u6c11\u53bb\u514d\u8d39\u7d22\u53d6vip\u670d\u52a1\u3002\u89c9\u5f97\u4e0d\u5408\u7406\u4e0d\u7528\u5c31\u884c\u4e86\u5457\u3002\u6211\u5c31\u51e0\u4e4e\u4e0d\u7528\u767e\u5ea6\u7f51\u76d8\u554a\uff09\u3002<\/p>\n\n\n\n

    \u6ce8\uff1a\u5176\u5b9e\u7f51\u76d8\u6ca1\u6709\u6d4b\u8bd5\u3002\u4e0d\u6d89\u53ca\u5176\u4ed6\u7f51\u76d8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u6628\u5929\u770b\u5230\u4e00\u4e2a\u6587\u7ae0\u8bf4\uff08\u6ce8\u610f\u662f\u6587\u7ae0\uff0c\u4e0d\u662f\u65b0\u95fb\uff0c\u4e2d\u56fd\u662f\u6ca1\u6709\u65b0\u95fb\u7684\uff09 \u7f51\u76d8\u4f01\u4e1a\u54cd\u5e94\u53f7\u53ec \u5bf9\u514d\u8d39\u7528\u6237\u4e0d\u9650\u901f\u4e86\u3002\u6587\u7ae0\u6807\u9898 \u5f88\u552c\u4eba\uff1a \u91cd\u78c5\uff01\u7f51\u76d8\u6b63\u5f0f\u201c\u505c\u6b62\u9650\u901f\u201d\uff1a\u767e\u5ea6\u72c2\u559c\uff0c\u963f\u91cc\u54ed\u6655\uff1f \u539f\u6587\uff1ahttps:\/\/m.sohu.com\/a\/502702718_324615\/?pvid=000115_3w_a&scm=1004.759734081562017792.0.0.0&spm=smwp.home.fd-it.4.1637611344659LytDbUX \u6211\u770b\u5230\u540e\uff0c\u9996\u5148\u5c31\u662f\u4e0d\u4fe1\uff0c\u8fd9\u662f\u51fa\u4e8e\u81ea\u5df1\u7684\u8ba4\u77e5\u4e0a\u7684\u4e0d\u4fe1\u3002\u6211\u5f53\u65f6\u5c31\u89c9\u5f97\u4e0d\u4fe1\uff08\u6211\u5c31\u662f\u60f3\u8bf4 \u6211\u5bf9\u8fd9\u79cd\u9e1f\u62a5\u9053\u7684\u6000\u7591\u662f\u6b63\u786e\u7684\uff09\u3002\u4eca\u5929\u8bd5\u4e86\uff0c\u4e0d\u8fc7150k\u3002\u5927\u6982<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,3],"tags":[251,300,301,298,299],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1923"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=1923"}],"version-history":[{"count":2,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1923\/revisions"}],"predecessor-version":[{"id":1927,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1923\/revisions\/1927"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1923"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}]